//
//  SYRequestAPI+FuDao.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/5/15.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYRequestAPI.h"
#import "SYBuKeXinXiModel.h"
#import "XianXiaShengQingModel.h"


@interface SYRequestAPI (FuDao)

#pragma mark - 问题辅导
/**
 辅导问题列表

 @param isAnswer 是否回答 0否 1是
 @param keyword 关键字
 @param classId 班级id
 @param pageIndex 页码
 @param pageSize 条数
 @param success 1
 @param fail 0
 */
+ (void)fd_requestTutorQuestionTutorServiceIsAnswer:(NSString *)isAnswer
                                            keyword:(NSString *)keyword
                                            classId:(NSString *)classId
                                          pageIndex:(NSInteger)pageIndex
                                           pageSize:(NSInteger)pageSize
                                            success:(void(^)(NSMutableArray *listArr))success
                                               fail:(FailBlock)fail;


/**
 问题分组

 @param questionId 问题id
 @param sortId 分组id
 @param oldsortid 旧分组id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestQuestionSortQuestionId:(NSString *)questionId
                                  sortId:(NSString *)sortId
                               oldSortId:(NSString *)oldsortid
                                 success:(void(^)(BOOL isSuccess))success
                                    fail:(FailBlock)fail;

/**
 问题删除

 @param questionId 问题id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestQuestionDeleteQuestionId:(NSString *)questionId
                                   success:(void(^)(BOOL isSuccess))success
                                      fail:(FailBlock)fail;



/**
 问题分类列表

 @param sortId fenleiid
 @param keyWord 关键字
 @param pageIndex 页码
 @param pageSize 条数
 @param success 1
 @param fail 0
 */
+ (void)fd_requestFenZuQuestionSortListSortId:(NSString *)sortId
                                      keyWord:(NSString *)keyWord
                                    pageIndex:(NSInteger)pageIndex
                                     pageSize:(NSInteger)pageSize
                                      success:(void(^)(NSMutableArray *listArr))success
                                         fail:(FailBlock)fail;


/**
 问题收藏

 @param questionId 问题id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestQuestionCollectionQuestionId:(NSString *)questionId
                                       success:(void(^)(BOOL isSuccess))success
                                          fail:(FailBlock)fail;


/**
 问题详情

 @param questionId 问题id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestQuestionDetailQuestionId:(NSString *)questionId
                                   success:(void(^)(NSMutableArray *listArr))success
                                      fail:(FailBlock)fail;




#pragma mark - 分组
/**
 问题分组

 @param keyWord 2
 @param success 1
 @param fail 0
 */
+ (void)fd_requestFenZuQuestionSortKeyWord:(NSString *)keyWord
                                   success:(void(^)(NSMutableArray *listArr))success
                                      fail:(FailBlock)fail;


/**
 6.5.2.2    分组添加/修改

 @param fzId 分组ID 添加时为：0，修改时传ID
 @param name 名称
 @param remark 备注
 @param success 1
 @param fail 0
 */
+ (void)fd_requestFenZuSortAddId:(NSString *)fzId
                            name:(NSString *)name
                          remark:(NSString *)remark
                         success:(void(^)(BOOL isSuccess))success
                            fail:(FailBlock)fail;


/**
 6.5.2.3    分组删除

 @param deleteid 分组ID
 @param isDelete 是否删除
 @param success 1
 @param fail 0
 */
+ (void)fd_requestFenZuSorDeleteId:(NSString *)deleteid
                          isDelete:(NSString *)isDelete
                           success:(void(^)(BOOL isSuccess))success
                              fail:(FailBlock)fail;


/**
 6.5.2.4    试题转移（批量转移）

 @param sortId 分组id
 @param oldSortId 旧分组id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestFenZuSorQuestionBatchTransFerSortId:(NSString *)sortId
                                            oldSortId:(NSString *)oldSortId
                                              success:(void(^)(BOOL isSuccess))success
                                                 fail:(FailBlock)fail;



#pragma mark - 在线辅导

/**
 在线辅导

 @param classid 班级id
 @param date 日期
 @param keyWord 关键字
 @param isfinished 是否完成 0：否，1：是
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassListClassId:(NSString *)classid
                              date:(NSString *)date
                           keyWord:(NSString *)keyWord
                        ifFinished:(NSString *)isfinished
                           success:(void(^)(NSMutableArray *listArr))success
                              fail:(FailBlock)fail;



#pragma mark - 班级

/**
 班级详情

 @param classId 班级id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestZaiXianClassDetailsClassId:(NSString *)classId
                                     success:(void(^)(NSMutableArray *listArr))success
                                        fail:(FailBlock)fail;


/**
 6.5.4.9    辅导视频查看记录

 @param classId 班级id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestZaiXianClassTutorRecordClassId:(NSString *)classId
                                         success:(void(^)(NSMutableArray *listArr))success
                                            fail:(FailBlock)fail;


/**
 6.5.4.1    创建班级/修改班级

 @param fdId 辅导班级 必填,添加传0，否则传ID
 @param title 辅导班级名称
 @param classId 班级ID
 @param accountId 辅导老师
 @param tutorAccountId 辅导助教
 @param type 辅导类型
 @param tutorTimes 辅导次数
 @param beginDate 开始日期
 @param endDate 结束日期
 @param content 辅导内容
 @param success 1
 @param fail 0
 */
+ (void)fd_requestZaiXianAddFuDaoClassId:(NSString *)fdId
                                   title:(NSString *)title
                                 classId:(NSString *)classId
                               accountId:(NSString *)accountId
                          tutorAccountId:(NSString *)tutorAccountId
                                    type:(NSString *)type
                               tutorType:(NSString *)tutorType
                              tutorTimes:(NSString *)tutorTimes
                               beginDate:(NSString *)beginDate
                                 endDate:(NSString *)endDate
                                 content:(NSString *)content
                                   msgId:(NSString *)msgId
                              isFinished:(NSString *)finished
                                 success:(void(^)(id responseObject))success
                                    fail:(FailBlock)fail;


/**
 6.5.5.1    线上申请列表

 @param isOnLine 是否线上 0：线下
 1：线上

 @param classId 课程ID
 @param date 日期
 @param keyWord 关键字
 @param pageIndex 页码
 @param pageSize 页条
 @param success 1
 @param fail 0
 */
+ (void)fd_requestLessonTutorLessonLineApplyIsOnLine:(NSString *)isOnLine
                                             classId:(NSString *)classId
                                                date:(NSString *)date
                                             keyWord:(NSString *)keyWord
                                           pageIndex:(NSInteger)pageIndex
                                            pageSize:(NSInteger)pageSize
                                             success:(void(^)(NSMutableArray *listArr))success
                                                fail:(FailBlock)fail;


/**
 6.5.5.2    资源发放查看

 @param applyId 申请id
 @param courseId 课程id
 @param date 日期
 @param keyWord 关键字
 @param isOnLine 是否线上 o线下 1线上
 @param success 1
 @param fail 0
 */
+ (void)fd_requestLessonTutorLessonApplyId:(NSString *)applyId
                                  courseId:(NSString *)courseId
                                      date:(NSString *)date
                                   keyWord:(NSString *)keyWord
                                  isOnLine:(NSString *)isOnLine
                                   success:(void(^)(NSMutableArray *listArr))success
                                      fail:(FailBlock)fail;


/**
 6.5.5.3    资源发放保存

 @param isOnLine 是否上线 0线下 1 线上
 @param applyIds 申请ids
 @param grandDate 资源发放日期
 @param recyeleDate 资源回收日期
 @param success 1
 @param fail 0
 */
+ (void)fd_requestLessonTutorLessonLineSaveIsOnLine:(NSString *)isOnLine
                                           applyIds:(NSString *)applyIds
                                          grandDate:(NSString *)grandDate
                                        recycleDate:(NSString *)recyeleDate
                                            success:(void(^)(BOOL isSuccess))success
                                               fail:(FailBlock)fail;


/**
 6.5.6.1    补课记录

 @param isOnLine 是否线上
 @param classId 班级
 @param date 日期
 @param keyWord 关键字
 @param pageIndex 页码
 @param pageSize 页条
 @param success 1
 @param fail 0
 */
+ (void)fd_requestLessonTutorLessonListIsOnLine:(NSString *)isOnLine
                                        classId:(NSString *)classId
                                           date:(NSString *)date
                                        keyWord:(NSString *)keyWord
                                      pageIndex:(NSInteger)pageIndex
                                       pageSize:(NSInteger)pageSize
                                        success:(void(^)(NSMutableArray *listArr))success
                                           fail:(FailBlock)fail;



/**
 6.5.6.2    线上补课详情

 @param appleyId 补课申请ID
 @param isOnLine 是否线上 0：线下 1：线上
 @param success 1
 @param fail 0
 */
+ (void)fd_requestLessonTutorLessonLineDetailsTutorAppleyId:(NSString *)appleyId
                                                   isOnLine:(NSString *)isOnLine
                                                    success:(void(^)(SYBuKeDetailsModel *listArr))success
                                                       fail:(FailBlock)fail;



/**
 辅导-补课管理-线下申请

 */
//6.5.5.1    线下申请列表
+ (void)fd_requestLessonTutorLessonLineApplyIsOffLine:(NSString *)isOnLine
                                              classId:(NSString *)classId
                                                 date:(NSString *)date
                                              keyWord:(NSString *)keyWord
                                            pageIndex:(NSInteger)pageIndex
                                             pageSize:(NSInteger)pageSize
                                              success:(void(^)(NSMutableArray *listArr))success
                                                 fail:(FailBlock)fail;
/**
 辅导-补课管理-线下申请-点名
 
 @param parama 参数字典
 @param success 成功
 @param fail 失败
 */
+ (void)fd_TutorTutorClassServiceTutorLessonOffLineSign:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail;
/**
 辅导-补课管理-线下申请-查看学生
 
 @param parama 参数字典
 @param success 成功
 @param fail 失败
 */
+ (void)fd_TutorTutorClassServiceTutorLessonOffLineStudents:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail;


/**
 辅导-在线辅导-创建班级-添加资源
 
 @param parama 参数字典
 @param success 成功
 @param fail 失败
 */
+ (void)fd_TutorTutorClassServiceClassAdd:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail;
/**
 辅导-在线辅导-创建班级-辅导类型
 
 @param parama 参数字典
 @param success 成功
 @param fail 失败
 */
+ (void)fd_TutorTutorTutorType:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail;

/**
 辅导-在线辅导-创建班级-创建课时
 
 @param parama 参数字典
 @param success 成功
 @param fail 失败
 */
+ (void)fd_TutorTutorTutorTypeClassLessonAdd:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail;
//
/**
 辅导-在线辅导-创建班级-添加学生
 
 @param parama 参数字典
 @param success 成功
 @param fail 失败
 */
+ (void)fd_TutorTutorClassStudentAdd:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail;


/**
 获取考试模板信息

 @param classId 班级id
 @param success 1
 @param fail 0
 */
+ (void)fd_getTemplateInfoByClassId:(NSString *)classId
                            success:(void(^)(NSMutableArray *datalistArr))success
                               fail:(FailBlock)fail;

/**
 辅导班级删除

 @param tutorId 辅导班级ID
 @param success 1
 @param fail 0
 */
+ (void)fd_postTutorClassDeleteTutorId:(NSString *)tutorId
                               success:(void(^)(BOOL isSuccess))success
                                  fail:(FailBlock)fail;




/**
 保存视频

 @param tutorId 辅导id
 @param recordId 辅导记录id
 @param videoUrl 视频地址
 @param success 1
 @param fail 0
 */
+ (void)fd_postTutorClassServiceSaveVideoTutorId:(NSString *)tutorId
                                        recordId:(NSString *)recordId
                                        videoUrl:(NSString *)videoUrl
                                         success:(void(^)(BOOL isSuccess))success
                                            fail:(FailBlock)fail;



#pragma mark - 群聊辅导详情

/**
 班级详情
 
 @param classId 班级id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestGroupChatClassDetailsClassId:(NSString *)classId
                                       success:(void(^)(NSMutableArray *listArr))success
                                          fail:(FailBlock)fail;




/**
 补课邀请列表

 @param classId 班级id
 @param pageIndex 页码
 @param pageSize 数目
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassLessonInvitationListClassId:(NSString *)classId
                                         pageIndex:(NSString *)pageIndex
                                          pageSize:(NSString *)pageSize
                                           success:(void(^)(NSMutableArray *listArr))success
                                              fail:(FailBlock)fail;



/**
 需要补课的课时列表

 @param classId 班级ID
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassNeedLessonListClassId:(NSString *)classId
                                     success:(void(^)(NSMutableArray *listArr))success
                                        fail:(FailBlock)fail;



/**
 分校信息

 @param success 1
 @param fail 0
 */
+ (void)fd_requestCampusListSuccess:(void(^)(NSMutableArray *listArr))success
                               fail:(FailBlock)fail;



/**
 分校班级信息

 @param campusId 分校id
 @param nameStr 名字
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassByCampusListCampusId:(NSString *)campusId
                                       name:(NSString *)nameStr
                                    success:(void(^)(NSMutableArray *listArr))success
                                       fail:(FailBlock)fail;


/**
 需要补课的课时学生列表

 @param classId 班级id
 @param scheduleId 排课id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassLessonNoAttendStudentListClassId:(NSString *)classId
                                             scheduleId:(NSString *)scheduleId
                                                success:(void(^)(NSMutableArray *listArr))success
                                                   fail:(FailBlock)fail;


/**
 邀请学生补课

 @param student 学生id
 @param classid 班级id
 @param courseId 课程id
 @param scheduleiD 排课id
 @param lessonTimes 学生科次id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassInviteStudentSudentIds:(NSString *)student
                                      classId:(NSString *)classid
                                     courseId:(NSString *)courseId
                                   scheduleiD:(NSString *)scheduleiD
                                  lessonTimes:(NSString *)lessonTimes
                                      success:(void(^)(BOOL isOk))success
                                         fail:(FailBlock)fail;


/**
 发放视频

 @param studentId 学生id
 @param scheduleId 排课id
 @param success 1
 @param fail 0
 */
+ (void)fd_requestClassGrantVideoStudentId:(NSString *)studentId
                                scheduleId:(NSString *)scheduleId
                                   success:(void(^)(BOOL isOk))success
                                      fail:(FailBlock)fail;


@end



















